package com.moyu.common.swagger;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Swagger 配置类
 *
 * @Author 赵彦博
 * @Date 2024/12/20 17:51
 */
@Configuration
public class SwaggerConfig {

    @Bean
    public OpenAPI openAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("在线论坛系统")
                        .description("在线论坛系统接口文档")
                        .version("v1.0"));
    }

}
